package com.yyfax.pay.third.model.to.quickpay;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.yyfax.pay.third.model.to.quickpay.xml.IndAuthDynVerifyContent;

/**
 * 独立鉴权请求参数
 * 
 * @author xiemh
 * @date 2017-04-12 16:36:56
 * @since v1.0.0
 */
@SuppressWarnings("serial")
public class AuthenticationQuickPayParams extends BaseQuickPayParams {
	private String version = "1.0";

	@XStreamAlias("indAuthDynVerifyContent")
	private IndAuthDynVerifyContent indAuthDynVerifyContent;

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public IndAuthDynVerifyContent getIndAuthDynVerifyContent() {
		return indAuthDynVerifyContent;
	}

	public void setIndAuthDynVerifyContent(IndAuthDynVerifyContent indAuthDynVerifyContent) {
		this.indAuthDynVerifyContent = indAuthDynVerifyContent;
	}

	/**
	 * 通过xml生成实体类
	 * 
	 * @author xiemh
	 * @date 2017-04-12 16:36:56
	 * @since v1.0.0
	 * @param xml
	 * @return
	 */
	public static AuthenticationQuickPayParams fromXml(String xml)  throws Exception{
		return (AuthenticationQuickPayParams) fromXml(xml, AuthenticationQuickPayParams.class);
	}

	@Override
	public boolean validate() throws Exception {
		// TODO Auto-generated method stub
		return false;
	}

}
